package com.day19.PrintStreamDemo;

import java.io.FileWriter;
import java.io.IOException;
import java.io.PrintWriter;

public class PrintWriterDemo {
    public static void main(String[] args) throws IOException
    {
        PrintWriter pw=new PrintWriter(new FileWriter("myOtherStream\\pw.txt"),true);
        pw.println("hello");
        pw.println("world");
        pw.close();
    }
}
